home *** CD-ROM | disk | FTP | other *** search
/ mail.altrad.com / 2015.02.mail.altrad.com.tar / mail.altrad.com / TEST / office deutch / INFOPATH.NL-NL / INFLR.CAB / FL_indexer_snippet_121841_ENU____.3643236F_FC70_11D3_A536_0090278A1BB8 < prev    next >
Extensible Markup Language  |  2005-08-12  |  1KB  |  41 lines

  1. ∩╗┐<?xml version="1.0" encoding="utf-8" ?>
  2. <CodeSnippets  xmlns="http://schemas.microsoft.com/VisualStudio/2005/CodeSnippet">
  3.     <CodeSnippet Format="1.0.0">
  4.         <Header>
  5.             <Title>indexer</Title>
  6.             <Shortcut>indexer</Shortcut>
  7.             <Description>Code snippet for indexer</Description>
  8.             <Author>Microsoft Corporation</Author>
  9.             <SnippetTypes>
  10.                 <SnippetType>Expansion</SnippetType>
  11.             </SnippetTypes>
  12.         </Header>
  13.         <Snippet>
  14.             <Declarations>
  15.                 <Literal>
  16.                     <ID>access</ID>
  17.                     <ToolTip>Access modifier</ToolTip>
  18.                     <Default>public</Default>
  19.                 </Literal>
  20.                 <Literal>
  21.                     <ID>type</ID>
  22.                     <ToolTip>Type to return from indexer</ToolTip>
  23.                     <Default>object</Default>
  24.                 </Literal>
  25.                 <Literal>
  26.                     <ID>indextype</ID>
  27.                     <ToolTip>Type used to specify index</ToolTip>
  28.                     <Default>int</Default>
  29.                 </Literal>
  30.             </Declarations>
  31.             <Code Language="csharp"><![CDATA[
  32.     $access$ $type$ this[$indextype$ index]
  33.     {
  34.         get {$end$ /* return the specified index here */ }
  35.         set { /* set the specified index to value here */ }
  36.     }
  37.     ]]>
  38.             </Code>
  39.         </Snippet>
  40.     </CodeSnippet>
  41. </CodeSnippets>